<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/jisuan.js"></script>
    <style>

        body{
            font-size: 30px;
        }
        #text{
            width: 340px;
            border: 1px solid lightgray;
            height: 50px;
            margin-bottom: 10px;
        }
        input{
            height: 50px;
            width: 50px;
            font-size: 18px;
        }

        input[value="="]{
            border-radius: 50%;
            height: 50px;
            width: 50px;
            background-color: rgb(219, 107, 16);
            border: none;
            outline: none;
        }

        input[value="+"],input[value="-"],input[value="×"],input[value="÷"]{
            color: rgb(219, 107, 16);
            font-weight: bold;
        }
    </style>
</head>

<body>
    <div id="text"></div>
    <input type="button" value="平方" onclick="square()">
    <input type="button" value="sin()" onclick="sin()">
    <input type="button" value="cos()" onclick="cos()">
    <input type="button" value="tan()" onclick="tan()">
    <input type="button" value="+" onclick="jisuan('+')">
    <input type="button" value="退格" onclick="back()">
    <div>

    </div>
    <input type="button" value="立方" onclick="cube()">
    <input type="button" value="1" onclick="jisuan(1)">
    <input type="button" value="2" onclick="jisuan(2)">
    <input type="button" value="3" onclick="jisuan(3)">
    <input type="button" value="-" onclick="jisuan('-')">
    <input type="button" value="(" onclick="jisuan('(')">
    <div>

    </div>
    <input type="button" value="开方" onclick="sqrt()">
    <input type="button" value="4" onclick="jisuan(4)">
    <input type="button" value="5" onclick="jisuan(5)">
    <input type="button" value="6" onclick="jisuan(6)">
    <input type="button" value="×" onclick="jisuan('*')">
    <input type="button" value=")" onclick="jisuan(')')">
    <div>

    </div>
    <input type="button" value="阶乘" onclick="jiechen1()">
    <input type="button" value="7" onclick="jisuan(7)">
    <input type="button" value="8" onclick="jisuan(8)">
    <input type="button" value="9" onclick="jisuan(9)">
    <input type="button" value="÷" onclick="jisuan('/')">
   
    <div>

    </div>
    
    <input type="button" value="清除" onclick="cls()">
    <input type="button" value="." onclick="jisuan('.')">
    <input type="button" value="0" onclick="jisuan(0)">
    <input type="button" value="=" onclick="ans()">
</body>

</html>